package bhoost.jsi;

public abstract class Event implements Cloneable {
  public int     eventCode;
  public Type    eventType;

  public enum Type {
    activity, key, geoLocation, camera, browserHistory, xmpp, notification, network
  }

  public Event() {}

  public int getEventCode() {
    return eventCode;
  }

  public String getEventType() {
    if (eventType != null)
      return eventType.toString();
    return null;
  }
  
  public Type getType() {
    if (eventType != null)
      return eventType;
    return null;
  }

  public Event clone() throws CloneNotSupportedException {
    return (Event)super.clone();
  }
}